package com.example.neo4jdemo.service;

import com.example.neo4jdemo.dao.UserRepository;
import com.example.neo4jdemo.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;


    @Transactional
    public void addUser(UserEntity userEntity){
        userRepository.save(userEntity);
    }
}
